import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible';
// swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)
    // 瀑布流
import VirtualCollection from 'vue-virtual-collection'
Vue.use(VirtualCollection)
    // console.dir(Vue);
    // 图片懒加载
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, {
    preLoad: 1.3,
    error: require('./assets/loading/Fg7PS0IesulBHFZwCvfx9-pj6fgs.gif'),
    loading: require('./assets/loading/FtVzlE42mb4MfUkz9qcbCKq8Qv_a.gif'),
    attempt: 1, //图片加载失败后的重试次数
})
import './assets/css/reset.css'
import './assets/iconfont/iconfont.css'

Vue.config.productionTip = false

new Vue({
    router,
    store,//挂载在vue 实例中
    render: h => h(App)
}).$mount('#app')